Skip to content

Conversation

@redpanda-f
Copy link
Contributor

This PR adds comprehensive support for local Filecoin networks to enable easier development and testing.

Changes

  • Add localnet support to Synapse SDK for local Filecoin network development
  • Introduce localnet configuration utilities with environment variable support for chain ID, RPC URLs, and contract addresses
  • Update FilecoinNetworkType to include 'localnet' alongside mainnet and calibration
  • Enhance network detection to automatically recognize localnet by chain ID
  • Add localnet contract address resolution with required/optional address validation
  • Update example scripts (storage-e2e, post-deploy-setup) to support --network localnet option
  • Export localnet configuration from synapse-core and synapse-sdk packages
  • Maintain backward compatibility with existing mainnet/calibration functionality

Environment Variables

The following environment variables can be used to configure localnet:

  • LOCALNET_CHAIN_ID (default: 1414)
  • LOCALNET_RPC_URL (default: http://127.0.0.1:5700/rpc/v1)
  • LOCALNET_RPC_WS_URL (default: ws://127.0.0.1:5700/rpc/v1)
  • LOCALNET_BLOCK_EXPLORER_URL (default: http://localhost:8080)
  • LOCALNET_MULTICALL3_ADDRESS,
  • LOCALNET_USDFC_ADDRESS, etc. for contract addresses

@github-project-automation github-project-automation bot moved this to 📌 Triage in FOC Jan 2, 2026
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 2, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
synapse-dev bde461c Commit Preview URL

Branch Preview URL
Jan 15 2026, 04:30 AM

@redpanda-f redpanda-f changed the title feat: Add Localnet Support to Synapse SDK feat: (foc-localnet-v1-rc) Add Localnet Support to Synapse SDK Jan 2, 2026
@BigLep
Copy link
Contributor

BigLep commented Jan 5, 2026

@redpanda-f : will you take care of the lint failures?

@BigLep BigLep moved this from 📌 Triage to 🔎 Awaiting review in FOC Jan 5, 2026
@rvagg rvagg force-pushed the feat/redpanda/localnet-support branch from 4431d7c to ebfd645 Compare January 6, 2026 05:21
@rjan90 rjan90 added this to the M4: Filecoin Service Liftoff milestone Jan 8, 2026
@BigLep BigLep moved this from 🔎 Awaiting review to ⌨️ In Progress in FOC Jan 8, 2026
@redpanda-f redpanda-f force-pushed the feat/redpanda/localnet-support branch from ebfd645 to 5c094bc Compare January 12, 2026 16:06
Copy link
Member

@hugomrdias hugomrdias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just needs docs update, the utils folder i will leave to Rod.

ps. with viem all this "add multicall everywhere" wont be needed

@BigLep BigLep moved this from ⌨️ In Progress to 🔎 Awaiting review in FOC Jan 13, 2026
@rvagg rvagg changed the title feat: (foc-localnet-v1-rc) Add Localnet Support to Synapse SDK feat: add devnet support Jan 15, 2026
@rvagg rvagg force-pushed the feat/redpanda/localnet-support branch from 5c094bc to 4c8ae6c Compare January 15, 2026 04:22
Copy link
Collaborator

@rvagg rvagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@redpanda-f I hope you don't mind that I rebased this and pushed another commit with fixes for things I was noticing (cause I'm trying to make progress using foc-localnet for testing atm).

Approving but still untested .. I'll come back and merge if all goes well.

@rvagg rvagg force-pushed the feat/redpanda/localnet-support branch from 4c8ae6c to bde461c Compare January 15, 2026 04:26
@rjan90 rjan90 merged commit 773551b into master Jan 15, 2026
12 checks passed
@rjan90 rjan90 deleted the feat/redpanda/localnet-support branch January 15, 2026 11:04
@github-project-automation github-project-automation bot moved this from 🔎 Awaiting review to 🎉 Done in FOC Jan 15, 2026
@rvagg
Copy link
Collaborator

rvagg commented Jan 15, 2026

Approving but still untested .. I'll come back and merge if all goes well.

I still haven't quite got this tested and proven! Although I have a local branch of foc-localnet that uses these changes. I'll get that PR up soon to make use of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

6 participants